package com.example.design.创建型设计模式.抽象工厂模式;

public class AbstractMain {
    public static void main(String[] args) {
        ComputerFactory intelFactory = new IntelComputerFactory();
        Computer intelComputer = new Computer(intelFactory);
        intelComputer.printComponents();

        System.out.println("-------------------");

        ComputerFactory amdFactory = new AMDComputerFactory();
        Computer amdComputer = new Computer(amdFactory);
        amdComputer.printComponents();
    }
}
